<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1,user-scalable=0">
    <title>东南亚新闻网</title>
    <% if(process.env.NODE_ENV=='dev') { %>
  <script src="/js/config.js"></script>
<% } else if(process.env.NODE_ENV=='test') { %>
  <script src="/h5/static/js/config.js"></script>
<% } else { %>
  <script src="/static/js/config.js"></script>
<% } %>
    <script>
        ! function(e, t) {
            function i() {
                var t = n.getBoundingClientRect().width;
                t / s > 750 && (t = 750 * s);
                var i = t / 10;
                n.style.fontSize = i + "px", d.rem = e.rem = i
            }
            var a, r = e.document,
                n = r.documentElement,
                o = r.querySelector('meta[name="viewport"]'),
                l = r.querySelector('meta[name="flexible"]'),
                s = 0,
                m = 0,
                d = t.flexible || (t.flexible = {});
            if (o) {
                console.warn("将根据已有的meta标签来设置缩放比例");
                var c = o.getAttribute("content").match(/initial\-scale=([\d\.]+)/);
                c && (m = parseFloat(c[1]), s = parseInt(1 / m))
            } else if (l) {
                var p = l.getAttribute("content");
                if (p) {
                    var u = p.match(/initial\-dpr=([\d\.]+)/),
                        f = p.match(/maximum\-dpr=([\d\.]+)/);
                    u && (s = parseFloat(u[1]), m = parseFloat((1 / s).toFixed(2))), f && (s = parseFloat(f[1]), m = parseFloat((1 / s).toFixed(2)))
                }
            }
            if (!s && !m) {
                var v = (e.navigator.appVersion.match(/android/gi), e.navigator.appVersion.match(/iphone/gi)),
                    b = e.devicePixelRatio;
                s = v ? b >= 3 && (!s || s >= 3) ? 3 : b >= 2 && (!s || s >= 2) ? 2 : 1 : 1, m = 1 / s
            }
            if (n.setAttribute("data-dpr", s), !o)
                if (o = r.createElement("meta"), o.setAttribute("name", "viewport"), e.webPageScalable ? o.setAttribute("content", "initial-scale=" + m + ", user-scalable=yes") : o.setAttribute("content", "initial-scale=" + m + ", maximum-scale=" + m + ", minimum-scale=" + m + ", user-scalable=no viewport-fit=cover"), n.firstElementChild) n.firstElementChild.appendChild(o);
                else {
                    var h = r.createElement("div");
                    h.appendChild(o), r.write(h.innerHTML)
                }
            e.addEventListener("resize", function() {
                clearTimeout(a), a = setTimeout(i, 300)
            }, !1), e.addEventListener("pageshow", function(e) {
                e.persisted && (clearTimeout(a), a = setTimeout(i, 300))
            }, !1), "complete" === r.readyState ? r.body.style.fontSize = 12 * s + "px" : r.addEventListener("DOMContentLoaded", function(e) {
                r.body.style.fontSize = 12 * s + "px"
            }, !1), i(), d.dpr = e.dpr = s, d.refreshRem = i, d.rem2px = function(e) {
                var t = parseFloat(e) * this.rem;
                return "string" == typeof e && e.match(/rem$/) && (t += "px"), t
            }, d.px2rem = function(e) {
                var t = parseFloat(e) / this.rem;
                return "string" == typeof e && e.match(/px$/) && (t += "rem"), t
            }
        }(window, window.lib || (window.lib = {}));
        document.documentElement.addEventListener('touchstart', function(event) {
            if (event.touches.length > 1) {
                event.preventDefault();
            }
        }, false);
        var lastTouchEnd = 0;
        document.documentElement.addEventListener('touchend', function(event) {
            var now = Date.now();
            if (now - lastTouchEnd <= 300) {
                event.preventDefault();
            }
            lastTouchEnd = now;
        }, false);
    </script>
</head>

<body>
    <div id="app"></div>
    <!-- built files will be auto injected -->
    <!-- built files will be auto injected -->
    <% if(process.env.NODE_ENV=='dev') { %>
        <script src="/js/jquery.min.js"></script>
        <script src="/js/webuploader/webuploader.html5only.min.js"></script>
      <% } else if(process.env.NODE_ENV=='test') { %>
        <script src="/h5/static/js/jquery.min.js"></script>
        <script src="/h5/static/js/webuploader/webuploader.html5only.min.js"></script>
      <% } else { %>
        <script src="/static/js/jquery.min.js"></script>
        <script src="/static/js/webuploader/webuploader.html5only.min.js"></script>
      <% } %>
</body>

</html>